Skip to content

Fix flaky service_integration_windows_test#11662

Merged
narph merged 2 commits intoelastic:masterfrom
narph:fix-service-integration-windows-test
Apr 15, 2019
Merged

Fix flaky service_integration_windows_test#11662
narph merged 2 commits intoelastic:masterfrom
narph:fix-service-integration-windows-test

Conversation

@narph
Copy link
Copy Markdown
Contributor

@narph narph commented Apr 5, 2019

Some services can change state before reader.Read() call is executed which will result in a test faillure.
Fix test by introducing a confidence factor and enriching the error message with the state-changed service details.

Fixes #8880 and #7977

@narph narph requested a review from a team as a code owner April 5, 2019 10:23
@narph narph added Team:Integrations Label for the Integrations team :Windows review Metricbeat Metricbeat and removed Metricbeat Metricbeat labels Apr 5, 2019
Copy link
Copy Markdown
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for improving this test. Just a really minor change request from me.

Comment thread CHANGELOG.next.asciidoc Outdated
Comment thread metricbeat/module/windows/service/service_integration_windows_test.go Outdated
@narph narph requested a review from andrewkroh April 5, 2019 14:30
@ruflin
Copy link
Copy Markdown
Contributor

ruflin commented Apr 8, 2019

jenkins, test this

@narph narph force-pushed the fix-service-integration-windows-test branch from 911fc0a to 87b5d0c Compare April 11, 2019 08:37
@narph
Copy link
Copy Markdown
Contributor Author

narph commented Apr 11, 2019

jenkins, test this

narph and others added 2 commits April 15, 2019 09:40
Some services can change state before reader.Read() call is executed which will result in a test faillure.
Fix test by introducing a confidence factor and enriching the error message with the state-changed service details.

Fixes elastic#8880 and elastic#7977
…test.go

Co-Authored-By: narph <mariana@elastic.co>
@narph narph force-pushed the fix-service-integration-windows-test branch from 87b5d0c to 2abafae Compare April 15, 2019 07:42
@narph narph merged commit 88b88f7 into elastic:master Apr 15, 2019
@narph narph deleted the fix-service-integration-windows-test branch April 15, 2019 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review Team:Integrations Label for the Integrations team :Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: service_integration_windows_test.go

4 participants